How can I fix the TypeError when adding numbers from a list to a new list in Python

join shbcf.ru